use std::io;



fn main() {
    println!("猜数！");
    println!("请输入你猜的数（1-100）");

    let mut guess = String :: new();

    io::stdin().read_line(&mut guess).expect("Failed to read line");

    println!("你猜的数是：{}", guess);

    let secret_number = 42;

    if guess.trim() == secret_number.to_string() {
        println!("恭喜你猜对了！");
    } else {
        println!("猜数错误！");
    }

}
